<include file="Layout/header" />
<body>
<div class="breadcrumbs" id="breadcrumbs"> 
  <script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
  <ul class="breadcrumb">
    <li> <i class="icon-home home-icon"></i> <a href="#">首页</a> </li>
    <li class="active">站点设置</li>
  </ul>
</div>
<div class="page-content">
  <div class="page-header">
    <h1> 站点设置 <small> <i class="icon-double-angle-right"></i> 设置站点信息 </small> </h1>
  </div>
  <!-- /.page-header -->
  
  <div class="row">
    <div class="col-xs-12"> 
      <!-- PAGE CONTENT BEGINS -->
      <div class="row-fluid">
        <div class="span12">
          <div class="widget-box">
            <div class="widget-header widget-header-blue widget-header-flat">
              <h4 class="lighter">设置站点信息</h4>
            </div>
            <div class="widget-body">
              <div class="widget-main">
                <div class="step-content row-fluid position-relative" id="step-container">
                  <div class="step-pane active" id="step1">
                   
                    <form class="form-horizontal" action="{:U('Admin/Setting/index')}" id="validation-form" method="post" enctype="multipart/form-data">
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="site_name">站点名称:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="site_name" name="site_name" value="{$setting.site_name}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="site_title">站点标题:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="site_title" name="site_title" value="{$setting.site_title}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="site_keywords">站点关键字:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="site_keywords" name="site_keywords" value="{$setting.site_keywords}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="site_description">站点描述:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="site_description" name="site_description" value="{$setting.site_description}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="hr hr-dotted"></div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="email">邮件地址:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="email" name="email" id="email" value="{$setting.site_email}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="phone">客服电话:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix"><!--  <span class="input-group-addon"> <i class="icon-phone"></i> </span> -->
                            <input type="tel" id="phone" name="phone" value="{$setting.site_kf}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="site_icp">ICP备案证书号:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" name="site_icp" id="site_icp" value="{$setting.site_icp}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="space-2"></div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="site_address">公司地址:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="site_address" name="site_address" value="{$setting.site_address}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="hr hr-dotted"></div>
                       
                      <div class="space-2"></div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right">启用站点</label>
                        <div class="col-xs-12 col-sm-9">
                          <div>
                            <label class="blue">
                              <input name="site_open" value="0" type="radio" class="ace" <if condition="$setting.site_open eq 0">checked</if> />
                              <span class="lbl"> 否</span> </label>
                          </div>
                          <div>
                            <label class="blue">
                              <input name="site_open" value="1" type="radio" class="ace" <if condition="$setting.site_open eq 1">checked</if>/>
                              <span class="lbl"> 是</span> </label>
                          </div>
                        </div>
                      </div>
                    <!--   
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="site_address">站点logo:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix" style="width:41.6666%;">
 							 <input type="file" id="id-input-file-2" name="file" />
                             <if condition="$setting.site_logo neq ''">
							 <img src="/data/{$setting.site_logo}" width="200" height="100"/>
                             </if>
                          </div>
                        </div>
                      </div> -->
                      <div class="hr hr-dotted"></div>                      
                      <div class="space-2"></div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="smtp_type">SMTP服务器:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="smtp_type" name="smtp_type" value="{$setting.smtp_type}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="smtp_port">SMTP 端口:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="smtp_port" name="smtp_port" value="{$setting.smtp_port}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="smtp_send_adress">发信人邮件地址:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="smtp_send_adress" name="smtp_send_adress" value="{$setting.smtp_send_adress}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="smtp_user">SMTP 身份验证用户名:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="smtp_user" name="smtp_user" value="{$setting.smtp_user}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="smtp_pwd">邮箱密码:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="password" id="smtp_pwd" name="smtp_pwd" value="{$setting.smtp_pwd}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>

                      <div class="hr hr-dotted"></div>                      
                      <div class="space-2"></div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="tx_num">每日提现数次:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="tx_num" name="tx_num" value="{$setting.tx_num}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="tx_ber">提现税率:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="tx_ber" name="tx_ber" value="{$setting.tx_ber}" class="col-xs-12 col-sm-5" /><span style="padding: 15px 0 0 10px;font-size: large;">%</span>
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right">是否允许提现</label>
                        <div class="col-xs-12 col-sm-9">
                          <div>
                            <label class="blue">
                              <input name="is_allow_tx" value="0" type="radio" class="ace" <if condition="$setting.is_allow_tx eq 0">checked</if> />
                              <span class="lbl"> 否</span> </label>
                          </div>
                          <div>
                            <label class="blue">
                              <input name="is_allow_tx" value="1" type="radio" class="ace" <if condition="$setting.is_allow_tx eq 1">checked</if>/>
                              <span class="lbl"> 是</span> </label>
                          </div>
                        </div>
                      </div>
					   <div class="hr hr-dotted"></div> 
					     <div class="space-2"></div>
					     <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="minAmount">最低投注额:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="minAmount" name="minAmount" value="{$setting.minAmount}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
					  <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="maxAmount">最高投注额:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="maxAmount" name="maxAmount" value="{$setting.maxAmount}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
					  <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="maxPeriod">每期最高投注额:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="maxPeriod" name="maxPeriod" value="{$setting.maxPeriod}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      
                      <div class="hr hr-dotted"></div>                      
                      <div class="space-2"></div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="bjpk_day">北京PK10校对日期:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="bjpk_day" name="bjpk_day" value="<?php echo date('m/d/Y',$setting['bjpk_day']);?>" class="col-xs-12 col-sm-5" />
                            <span class="input-group-addon" style="width: 20px;"> <i class="icon-calendar"></i> </span>
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="bjpk_period">PK10校对日期最后一期:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="bjpk_period" name="bjpk_period" value="{$setting.bjpk_period}" class="col-xs-12 col-sm-5" /> 
                          </div>
                        </div>
                      </div>
                      
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="bjk8_day">北京快8校对日期:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="bjk8_day" name="bjk8_day" value="<?php echo date('m/d/Y',$setting['bjk8_day']);?>" class="col-xs-12 col-sm-5" />
                            <span class="input-group-addon" style="width: 20px;"> <i class="icon-calendar"></i> </span>
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="bjk8_period">北京快8校对日期最后一期:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="bjk8_period" name="bjk8_period" value="{$setting.bjk8_period}" class="col-xs-12 col-sm-5" /> 
                          </div>
                        </div>
                      </div>
					  
					  
					  <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="twbg_day">台湾宾果校对日期:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="twbg_day" name="twbg_day" value="<?php echo date('m/d/Y',$setting['twbg_day']);?>" class="col-xs-12 col-sm-5" />
                            <span class="input-group-addon" style="width: 20px;"> <i class="icon-calendar"></i> </span>
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="twbg_period">台湾宾果校对日期最后一期:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="twbg_period" name="twbg_period" value="{$setting.twbg_period}" class="col-xs-12 col-sm-5" /> 
                          </div>
                        </div>
                      </div>
					  
                      
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="gxklsf_day">广西快乐十分校对日期:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="gxklsf_day" name="gxklsf_day" value="<?php echo date('m/d/Y',$setting['gxklsf_day']);?>" class="col-xs-12 col-sm-5" />
                            <span class="input-group-addon" style="width: 20px;"> <i class="icon-calendar"></i> </span>
                          </div>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="gxklsf">广西快乐十分校对最后一期:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="gxklsf" name="gxklsf" value="{$setting.gxklsf}" class="col-xs-12 col-sm-5" /> 
                          </div>
                        </div>
                      </div>
                      
                      <div class="form-group">
									  <label class="control-label col-xs-12 col-sm-3 no-padding-right">是否开盘:</label>
										<div class="col-xs-12 col-sm-9" style="padding-top:20px;">
                                        
											<div class="row">
												<div class="col-xs-3">
												  <span>重庆时时彩</span>
													<label>
														<input name="is_kaipan[1]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.1 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
												<div class="col-xs-3">
												  <span>新疆时时彩</span>
													<label>
														<input name="is_kaipan[2]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.2 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
											</div>
											<div class="row">
												<div class="col-xs-3">
												  <span>天津时时彩</span>
													<label>
														<input name="is_kaipan[3]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.3 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
												<div class="col-xs-3">
												  <span>北京赛车PK10</span>
													<label>
														<input name="is_kaipan[4]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.4 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
											</div>
											<div class="row">
												<div class="col-xs-3">
												  <span>幸运飞艇</span>
													<label>
														<input name="is_kaipan[5]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.5 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
												<div class="col-xs-3">
												  <span>广东快乐十分</span>
													<label>
														<input name="is_kaipan[6]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.6 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
											</div>
                                            <div class="row">
												
												<div class="col-xs-3">
												  <span>台湾宾果</span>
													<label>
														<input name="is_kaipan[22]" value="1"  class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.22 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
												<div class="col-xs-3">
												  <span>重庆幸运农场</span>
													<label>
														<input name="is_kaipan[8]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.8 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
											</div>
                                           <div class="row">
												<div class="col-xs-3">
												  <span>北京快乐8</span>
													<label>
														<input name="is_kaipan[9]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.9 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
												<div class="col-xs-3">
												  <span>广西快乐十分</span>
													<label>
														<input name="is_kaipan[10]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.10 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div> 
											</div> 
                                            <div class="row">
												
													<div class="col-xs-3">
												  <span>台湾五分</span>
													<label>
														<input name="is_kaipan[23]" value="1"  class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.23 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
												<div class="col-xs-3">
												  <span>香港六合彩</span>
													<label>
														<input name="is_kaipan[12]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.12 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div> 
											</div> 
                                            <div class="row">
												<div class="col-xs-3">
												  <span>分分彩</span>
													<label>
														<input name="is_kaipan[13]" value="1"  class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.13 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
													<div class="col-xs-3">
												  <span>加拿大快乐8</span>
													<label>
														<input name="is_kaipan[15]" value="1"  class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.15 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
											 
											</div> 
											<div class="row">
												<div class="col-xs-3">
												  <span>QQ分分彩</span>
													<label>
														<input name="is_kaipan[16]" value="1"  class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.16 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
												<div class="col-xs-3">
                          <span>腾讯分分彩</span>
                          <label>
                            <input name="is_kaipan[17]" value="1"  class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.17 eq 1"> checked </if> />
                            <span class="lbl"></span>
                          </label>
                        </div>
                     </div>
											<div class="row">
												<div class="col-xs-3">
												  <span>河北快3</span>
													<label>
														<input name="is_kaipan[18]" value="1"  class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.18 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
												
													<div class="col-xs-3">
												  <span>湖北快3</span>
													<label>
														<input name="is_kaipan[19]" value="1"  class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.19 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
											 
											</div> 
											<div class="row">
												<div class="col-xs-3">
												  <span>江苏快3</span>
													<label>
														<input name="is_kaipan[20]" value="1"  class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.20 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
												<div class="col-xs-3">
												  <span>广西快3</span>
													<label>
														<input name="is_kaipan[7]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.7 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
												<!-- 	<div class="col-xs-3">
												  <span>上海时时乐</span>
													<label>
														<input name="is_kaipan[21]" value="1"  class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.21 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div> -->
											 
											</div> 
											<div class="row">
											<div class="col-xs-3">
												  <span>PC蛋蛋</span>
													<label>
														<input name="is_kaipan[11]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.11 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
												<div class="col-xs-3">
												  <span>加拿大3.5</span>
													<label>
														<input name="is_kaipan[24]" value="1" class="ace ace-switch ace-switch-4" type="checkbox" <if condition="$kaipan.24 eq 1"> checked </if> />
														<span class="lbl"></span>
													</label>
												</div>
													
											 
											</div>  
                                            
										</div>
									</div>
                      
                      
                      
                      <div class="clearfix form-actions">
                        <div class="col-md-offset-3"><input class="btn btn-primary radius" type="submit" id="submitBtn" value="&nbsp;&nbsp;提交&nbsp;&nbsp;"></div>
                      </div>
                    </form>
                  </div>
                </div>
                
              </div>
              <!-- /widget-main --> 
            </div>
            <!-- /widget-body --> 
          </div>
        </div>
      </div>
      
      <!-- PAGE CONTENT ENDS --> 
    </div>
    <!-- /.col --> 
  </div>
  <!-- /.row --> 
</div>
<!-- /.page-content --> 

<!-- /#ace-settings-container --> 
<!--[if !IE]> -->

		<script src="/Public/Admin/js/jquery-2.0.3.min.js"></script>

		<!-- <![endif]--> 

<!--[if IE]>
<script src="/Public/Admin/js/jquery-2.0.3.min.js"></script>
<![endif]--> 

<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='/Public/Admin/js/jquery-2.0.3.min.js'>"+"<"+"script>");
		</script>

		<!-- <![endif]--> 

<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='/Public/Admin/js/jquery-1.10.2.min.js'>"+"<"+"script>");
</script>
<![endif]--> 

<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='/Public/Admin/js/jquery.mobile.custom.min.js'>"+"<"+"script>");
		</script> 
<script src="/Public/Admin/js/bootstrap.min.js"></script> 
<script src="/Public/Admin/js/typeahead-bs2.min.js"></script> 

<!-- page specific plugin scripts --> 

<!--[if lte IE 8]>
		  <script src="/Public/Admin/js/excanvas.min.js"></script>
		<![endif]--> 

<!-- ace scripts --> 

<script src="/Public/Admin/js/ace-elements.min.js"></script> 
<script src="/Public/Admin/js/ace.min.js"></script> 
<script src="__ADMIN_JS__/jquery.validate.min.js"></script> 
<link href="__ADMIN_CSS__/datepicker.css" rel="stylesheet" />
<script src="__ADMIN_JS__/date-time/bootstrap-datepicker.min.js"></script>

<script type="text/javascript">
			 
$(document).ready(function(){
                $('#id-input-file-2').ace_file_input({
					no_file:'没有选择文件',
					btn_choose:'选择',
					btn_change:'更改',
					droppable:false,
					onchange:null,
					thumbnail:false //| true | large
					//whitelist:'gif|png|jpg|jpeg'
 					//blacklist:'exe|php'
					//onchange:''
					//
				});

	
    $("#submitBtn").click(function(){ 
         $("#validation-form").submit();
    });
	$('#validation-form').validate({
		errorElement: 'div',
		errorClass: 'help-block',
		focusInvalid: false,
        rules : {
        	            email: {
							required: true,
							email:true
						},
 						site_name: {
							required: true
						},
 						site_open: 'required',
						 
        },
        messages : {
      		            email: {
							required: "请填写合法的邮箱地址.",
							email: "请填写合法的邮箱地址."
						},
						site_name: {
							required: "站点名称不能为空"
						},
 						site_open: "请选择是否开启站点"
						 
        },
		 
			
					highlight: function (e) {
						$(e).closest('.form-group').removeClass('has-info').addClass('has-error');
					},
			
					success: function (e) {
						$(e).closest('.form-group').removeClass('has-error').addClass('has-info');
						$(e).remove();
					},
			
					errorPlacement: function (error, element) {
						if(element.is(':checkbox') || element.is(':radio')) {
							var controls = element.closest('div[class*="col-"]');
							if(controls.find(':checkbox,:radio').length > 1) controls.append(error);
							else error.insertAfter(element.nextAll('.lbl:eq(0)').eq(0));
						}
						else if(element.is('.select2')) {
							error.insertAfter(element.siblings('[class*="select2-container"]:eq(0)'));
						}
						else if(element.is('.chosen-select')) {
							error.insertAfter(element.siblings('[class*="chosen-container"]:eq(0)'));
						}
						else error.insertAfter(element.parent());
					},
			
					submitHandler: function (form) {
						$(form).ajaxSubmit();
			            var index = parent.layer.getFrameIndex(window.name);
			            //parent.$('.btn-refresh').click();
			            parent.layer.close(index);
					}
					 
    });
});
		</script>
        
        <script type="text/javascript">
			jQuery(function($) {
				$("#bjpk_day").datepicker({
					showOtherMonths: true,
					selectOtherMonths: false,
					 
				});
				$("#bjk8_day").datepicker({
					showOtherMonths: true,
					selectOtherMonths: false,
					 
				});
			
				$("#twbg_day").datepicker({
					showOtherMonths: true,
					selectOtherMonths: false,
					 
				});
				$("#gxklsf_day").datepicker({
					showOtherMonths: true,
					selectOtherMonths: false,
					 
				});
			})	
				</script>
</body>
</html>